//
//  NoDataBackView.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2018/12/29.
//  Copyright © 2018 Gox_WallyDiao. All rights reserved.
//

import UIKit

class NoDataBackView: UIView {
    var descLabel: UILabel = {
        let label = UILabel.init(frame: FRAME_CGFloat(SCREEN_WIDTH - 81.5, 50, 162.5, 228.5))
        label.font = FONT(13)
        label.textAlignment = .center
        label.textColor = RGB_Same(178)
        label.text = ""
        return label
    }()
    
    var descImageView: UIImageView = {
        let imageView = UIImageView.init(frame: FRAME_CGFloat(SCREEN_WIDTH - 81.5, 290, 162.5, 228.5))
        imageView.image = IMAGE(name: "placeholderImage")
        return imageView
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setUI() {
    
        self.addSubview(descLabel)
        self.addSubview(descImageView)
        
        
//        self.descImageView.snp.makeConstraints { (make) in
//            make.bottom.equalTo(self.descLabel.snp.top).offset(-10)
//            make.centerX.equalToSuperview()
//            make.width.equalTo(162.5)
//            make.height.equalTo(228.5)
//        }
        
    }
    

}
